import {reqFloorList} from "@/api/index"

const state={
    floorList: [],
}

const mutations={
    GETFLOORLIST(state,floorList){
        state.floorList = floorList;
     }
}

const actions={
    async getFloorList({ commit }) {
        let result = await reqFloorList();
        if (result.code == 200) {
          //提交mutation
          commit("GETFLOORLIST", result.data);
        }
    },
}

const getters={

}

export default{
    state,
    mutations,
    actions,
    getters
}